module TasksHelper
	def alter_color_for_stage(stage)
		if stage == 0
      	return "init"
      elsif stage == 1
         return "ready"
      elsif stage == 2
      	return "schedule"
      elsif stage == 3
      	return "running"
		elsif stage == 4
			return "end"
		elsif stage == 5
			return "cancel"
		else
			return "unknown"
		end
   end
end
